<?php

class Application_Form_Eventos extends Zend_Form
{
    
    public function init()
    {
        
        $this->setMethod('post');
		$this->setAttrib('id', 'ajax_form');


		$this->setDecorators(
			array(	"FormElements",
					array("HtmlTag", array("tag" => "table")),
					"Form"
			)
		);
        
        
        $notas=new Zend_Form_Element_Textarea('notas');
        $notas->setLabel('Descripción')
                ->setAttribs(array('rows'=>5,'cols'=>80))
                ->addFilter('StringTrim');
        
        
        
        $idzona=new Sgit_Form_Element_Select_Datacenter('id_zona');
        $idzona->setRequired(true);
        
        $this->addElement($idzona)
             ->addElement($notas);
        
        
        
          $this->setElementDecorators(array(
		    'ViewHelper',
		   'Errors',
		    array(array('data' => 'HtmlTag'),	array('tag' => 'td', 'class' => 'element')   ),
		    array('Label', array('tag' => 'td')),
		    array(array('row' => 'HtmlTag'), array('tag' => 'tr')),
		));


        
    }
    

    
}
